package String;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-10
 * Time: 11:08
 */
public class demo2 {
    public static void main(String[] args) {
        String str1 = new String("abcd");
        String str2 = new String("hello");

        System.out.println(str1.length());
        System.out.println(str2.length());
    }
}
